﻿using System;
using System.Collections.Generic;
using System.Text;
namespace Orderr
{
    [Serializable]
    public class Good
    {
        public string name { get; set; }
        public int price { get; set; }
        public Good(string nam, int pric)
        {
            name = nam; price = pric;
        }
        public Good()
        {
        }
        public override string ToString()
        {
            return "单价为" + price + "的" + name;
        }
        public override int GetHashCode()
        {
            return name.GetHashCode() + price;
        }
    }
}